package com.easylinkin.linkappapi.meterbilling.controller;

import com.easylinkin.linkappapi.meterbilling.service.CbjfLinkappAreaService;
import com.easylinkin.linkappapi.space.entity.LinkappArea;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import site.morn.rest.RestBuilders;
import site.morn.rest.RestMessage;

/**
 * @program: linkapp-group
 * @description: 对区域空间下拉框做处理
 * @author: chenkaixuan
 * @create: 2021-07-12 14:21
 */
@RestController
@RequestMapping("/cbjf/area")
public class CbjfLinkappAreaController {
    @Autowired
    CbjfLinkappAreaService linkappAreaService;
    @ApiOperation("查询区域-树列表")
    @PostMapping("/selectLinkappAreaTreeList")
    public RestMessage selectLinkappAreaTreeList(@RequestBody LinkappArea linkappArea) {
        return RestBuilders.successBuilder().data(linkappAreaService.selectLinkappAreaTreeList(linkappArea)).build();
    }

}
